// component/order/order.ts
Component({

    /**
     * 组件的属性列表
     */
    properties: {
      dataList: {
        type: Array,
        value:[],
      },
    },
    /**
     * 组件的初始数据
     */
    data: {
      isFresh:false,
      list:[]
    },

    /**
     * 组件的方法列表
     */
    methods: {
      handleDetail(e:any){
        const {id}  = e.currentTarget.dataset
        wx.navigateTo({
          url:'/subpackagesA/pages/repairdetails/repairdetails?id='+id
        })
      },
      fresh() {
        let _that = this
        _that.setData({
          isFresh: true
        })
        this.triggerEvent("getList")
        setTimeout(function () {
          _that.setData({
            isFresh: false
          })
        }, 1000)
      },
    }
})